package net.lab1024.sa.base.module.support.traffic.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.lab1024.sa.base.module.support.traffic.domain.entity.TrafficHeartbeatHistoryEntity;
import net.lab1024.sa.base.module.support.traffic.domain.entity.TrafficResponseHistoryEntity;
import net.lab1024.sa.base.module.support.traffic.domain.form.TrafficHeartbeatHistoryQueryForm;
import net.lab1024.sa.base.module.support.traffic.domain.form.TrafficResponseHistoryQueryForm;
import net.lab1024.sa.base.module.support.traffic.domain.vo.TrafficHeartbeatHistoryVO;
import net.lab1024.sa.base.module.support.traffic.domain.vo.TrafficResponseHistoryVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 交通历史记录DAO
 */
@Mapper
public interface TrafficHistoryDao {

    void insertHeartbeat(TrafficHeartbeatHistoryEntity entity);

    List<TrafficHeartbeatHistoryVO> pageQueryHeartbeat(Page<?> page, @Param("query") TrafficHeartbeatHistoryQueryForm queryForm);

    void insertResponse(TrafficResponseHistoryEntity entity);

    List<TrafficResponseHistoryVO> pageQueryResponse(Page<?> page, @Param("query") TrafficResponseHistoryQueryForm queryForm);
}

